Implementation an Experimental Evaluation of Graph Connectivity Algorithms Using LEDA
نویسندگان
چکیده
In this paper we describe robust and eecient implementations of two graph connectivity algorithms. The implementations are based on the LEDA library of eecient data types and algorithms 18]. Moreover, we provide experimental evaluations of the implemented algorithms and we compare their performance to other graph connectivity algorithms currently implemented in LEDA. The rst algorithm is the Karp and Tarjan algorithm 16] for nding the connected components of an undirected graph. The algorithm achieves to nd the connected components of a graph G = hV; Ei in O(jV j) expected time. This is the rst expected-time algorithm for the static graph connectivity problem implemented in LEDA. The experimental evaluation of the algorithm proves that the algorithm performs well in practice, and establishes that theoretical and experimental results converge. The standard procedure provided by LEDA for nding the connected components of a graph, called COMPONENTS has running time O(jV j + jEj). We have compared the performance of Karp and Tarjan's algorithm to the one of COMPONENTS and we have proved that there exists a wide class of graphs (those that they are dense) that the performance of the rst algorithm dramatically improves upon the one of the second. The second implemented algorithm is the Nikoletseas, Reif, Spirakis and Yung polylog-arithmic algorithm 20] for dynamic graph connectivity. The algorithm can cope with any random sequence of three kinds of operations: (1)Property-Query(parameter): returns true if and only if the property holds; (2) Insert(x; y): inserts a new edge joining vertices x to y; (3) Delete(x; y): deletes the edge (x; y). The experimental evaluation of the algorithm proves that it is very eecient for particular classes of graphs. Comparing the performance of the implemented algorithm to the one of other dynamic connectivity algorithms implemented in LEDA, we conclude that the algorithm always performs better than all these algorithms for dense random graphs and random sequences of operations. Moreover, it works very eeciently even for sparse random graphs when the sequence of operations is long.
منابع مشابه
Implementation of a Linear Expected-Time Algorithm for Finding Connected Components
We describe a robust and efficient implementation of the Karp and Tarzan [4] algorithm for finding the connected components of an undirected graph. The algorithm achieves to find the connected components of a graph G = (V,E) in O(|V|) expected time. The implementation of the algorithm (called GCOMPONENTS) is based on the LEDA library of efficient data types and algorithms [5,6,7]. This is the f...
متن کاملA Survey on Complexity of Integrity Parameter
Many graph theoretical parameters have been used to describe the vulnerability of communication networks, including toughness, binding number, rate of disruption, neighbor-connectivity, integrity, mean integrity, edgeconnectivity vector, l-connectivity and tenacity. In this paper we discuss Integrity and its properties in vulnerability calculation. The integrity of a graph G, I(G), is defined t...
متن کاملTowards a measure of vulnerability, tenacity of a Graph
If we think of the graph as modeling a network, the vulnerability measure the resistance of the network to disruption of operation after the failure of certain stations or communication links. Many graph theoretical parameters have been used to describe the vulnerability of communication networks, including connectivity, integrity, toughness, binding number and tenacity.In this paper we discuss...
متن کاملEecient, Adaptable Implementations of Graph Algorithms
EEciency, exibility, and ease of use are desirable goals in library design. However, these goals seem to contradict each other. The Library of Ecient Algorithms and Data Structures (LEDA) focuses on eeciency and ease of use. On the other hand, we have developed concepts for the implementation of algorithms which focus on eeciency and exibility. In this paper, we present a possible combination o...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 1999